//
//  Meds.h
//  iMed

//	Meds is an array of NDCitems, which are the items
//	that can be referenced by a prescription (RX). The array 
//	of them is used for views and searches. 

//
//  Created by Barry Press on 8/15/09.
//  Copyright 2009 Barry Press. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NDCitem.h"

@interface Meds : NSObject <NSCoding> {
	NSMutableArray *meds;
}

+ (void)initialize;

- (void)addObject:(NDCitem*)anObject;
- (int)count;
- (NDCitem*)objectAtIndex:(int)index;
- (NDCitem*)objectWithName:(NSString*)aName;
- (void)removeAllObjects;
- (void)removeObject:(NDCitem*)anObject;
- (BOOL)validateObject;

@end

/*
 insertObject:atIndex:
 removeObjectAtIndex:
 addObject:
 removeLastObject
 replaceObjectAtIndex:withObject:
*/
